package Work4.Slay_the_Maze.Relics;

import Work4.Slay_the_Maze.Player.*;
import Work4.Slay_the_Maze.Potions.Manapotion;
import Work4.Slay_the_Maze.Potions.Potions;

public class LittleStone extends Relics{
	private int numValue=1;
	public int getNumValue() {
		return numValue;
	}
	public void setNumValue(int numValue) {
		this.numValue = numValue;
	}
	public LittleStone() {
		super("光滑鹅卵石",60);
	}
	public void PrintInfo() {
		System.out.println("光滑鹅卵石：这块小石头使你获得1点敏捷");
	}
	public void useit(Player player) {
		player.setAgility(player.getAgility()+numValue);
	}
	public LittleStone(LittleStone other) {
        // 调用父类的构造函数，复制父类属性
        super(other.getName(),other.getValue());
        // 复制 Defense 类的特定属性
        this.numValue = other.numValue;
    }

    // 克隆方法
    @Override
    public LittleStone clone() {
        return new LittleStone(this);  // 使用拷贝构造函数
    }
}
